#ifndef REQUIREMENTINFOTABLE_H
#define REQUIREMENTINFOTABLE_H

#include <QObject>

class RequirementInfoTable
{
public:
    RequirementInfoTable();

    bool selectAllByPrj(QString prjUuid, QList<QVariantList>& data);
    bool insertNewRequirement(
            QString uuid,
            QString prjUuid,
            QString parentRequirementUuid,
            QString requirementName,
            QString requirementDescription,
            QString createTime,
            QString lastModifyTime,
            QString requirementStatus);
    bool updateRequirement(
            QString uuid,
            QString parentRequirementUuid,
            QString requirementName,
            QString requirementDescription,
            QString lastModifyTime,
            QString requirementStatus);
    bool updateRequirementParentUuid(
            QString uuid,
            QString parentUuid);
    bool updateRequirementStatus(
            QString uuid,
            QString status);

    bool deleteRequirement(QString uuid);

    bool deleteChildRequirement(QString parentUuid);
};

#endif // REQUIREMENTINFOTABLE_H
